package com.qifan.energy.bean.entity;

import com.chad.library.adapter.base.entity.SectionMultiEntity;
import com.qifan.energy.bean.result.BaseResult;

public class HomeProductMultiItemEntity extends SectionMultiEntity<BaseResult> {

    public static final int DISTRIBUTE = 1; //分销商品区
    public static final int NORMAL = 2; //普通商品区
    private int itemType; // 附加字段方便处理所需逻辑
    private BaseResult result;         // 主体数据实体类型

    public BaseResult getResult() {
        return result;
    }

    public void setResult(BaseResult result) {
        this.result = result;
    }

    public HomeProductMultiItemEntity(int itemType, boolean isHeader, String header) {
        super(isHeader, header);
        this.itemType = itemType;
    }

    public HomeProductMultiItemEntity(int itemType, BaseResult result) {
        super(result);
        this.itemType = itemType;
        this.result = result;
    }

    @Override
    public int getItemType() {
        return itemType;
    }
}
